<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.ubst.smartad.env.*" %>
<%@page import="com.ubst.smartad.session.*" %>
<%@page import="com.ubst.smartad.logger.Debug" %>
<%@page import="java.util.HashMap" %>
<%@page import="com.ubst.smartad.dbpool.TransactionManager" %>
<%@page import="com.ubst.smartad.impl.admin.auth.AuthMngImpl" %>

<%@include file="/jsp/inc/base.jsp"%>
<jsp:useBean id="tem" class="com.ubst.smartad.template.Template" scope="page"/>
<%

	tem.setFiletop(web_root+"skin1/inc/top.html");
	tem.setFilebottom(web_root+"skin1/inc/bottom.html");
	tem.setFileText( web_root+"skin1/admin/auth/command_detail.html");
		
	/*
	*	setting
	*
	*//////////////////
	String ip_addr = request.getParameter("ip_addr");
	///////////////////
			
	HashMap authMap = new HashMap();
	AuthMngImpl authMng = null;
	TransactionManager tm = new TransactionManager();
	
	authMng = new AuthMngImpl(tm.connection, serverName, fhostEnv.getLogLevel());
	authMap = authMng.command_detail(ip_addr);// list
	
	tem.setReplaceKey("{LOG_TIME}", String.valueOf(authMap.get("log_time")));
	tem.setReplaceKey("{LOG_TYPE}", String.valueOf(authMap.get("log_type")));
	tem.setReplaceKey("{WORK_TYPE}", String.valueOf(authMap.get("work_type")));
	tem.setReplaceKey("{USER}", String.valueOf(authMap.get("user")));
	tem.setReplaceKey("{ACCOUNT}", String.valueOf(authMap.get("account")));
	tem.setReplaceKey("{IP_ADDR}", String.valueOf(authMap.get("ip_addr")));
	tem.setReplaceKey("{TARGET_SYSTEM}", String.valueOf(authMap.get("target_system")));
	tem.setReplaceKey("{SERVICE}", String.valueOf(authMap.get("service")));
	tem.setReplaceKey("{RESULT}", String.valueOf(authMap.get("result")));
	tem.setReplaceKey("{DETAIL}", String.valueOf(authMap.get("detail")));
	
%>
<%@include file="/jsp/inc/out.jsp"%>